package com.lsk.order.api;


import com.lsk.model.Bean.Product;
import com.lsk.order.FallBack.ProductFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-product",fallback = ProductFallBack.class)
public interface ProductApi {

    @GetMapping("api/product/get")
    Product getProduct(@RequestParam("productId") Long productId);
}
